home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 6 / coreaids.zip / CURS_SET.ASM < prev    next >
Assembly Source File  |  1987-06-25  |  883b  |  37 lines

  1. ;    DESC:    Sets Cursor Position                                 V1.01
  2. ;    IN:    *{ROWCOL} row and column to postion cursor
  3. ;         row (0-24),col (0-79)  (i.e. 0104)
  4. ;         1st row, 5th column
  5. ;        *{PAGE_NUM} page number (0-7) in 40 character mode and (0-3)
  6. ;         in 80 character mode (i.e. 0003) is page 4
  7. ;    SAMPLE:    Callm    CURS_SET,<ROWCOL,PAGE_NUM>,
  8. ;    ####################################################################
  9.  
  10.     Extrn    PUSHALL:Near
  11.     Extrn    POPALL:Near
  12.  
  13. CURS_SEC    Segment
  14.     Assume    CS:CURS_SEC
  15.     Public    CURS_SET
  16.  
  17.                         ;notice.
  18.     DB    'CURS_SET - V1.01, Copyright 1987, CoreTechs   ',0DH,0AH
  19.  
  20. CURS_SET    Proc    Near
  21.     Call    PUSHALL                ;save registers.
  22.  
  23.     Pop    BX                ;recover page number and
  24.     Xchg    BH,BL                ;place it in BH.
  25.  
  26.     Pop    DX                ;recover cursor.
  27.  
  28.     Mov    AH,2                ;position cursor.
  29.     Int    10H
  30.  
  31.     Call    POPALL                ;recover registers.
  32.     Ret
  33.  
  34. CURS_SET    Endp
  35. CURS_SEC    Ends
  36.     End
  37.